import request from "@/utils/request.js";

//我的合同模块接口
export function getConMyHistoryAllList(id) {
    return request({
        url: '/con/myConFileHistory/list/' + id,
        method: 'get',
    })
}

export function getConMyHistoryFile(id) {
    return request({
        url: '/con/myConFileHistory/getPageOfficeFile/' + id,
        method: 'get'
    })
}

export function restoreToHistory(id) {
    return request({
        url: '/con/myConFileHistory/restoreConToHistory/' + id,
        method: 'put'
    })
}

//办理合同模块接口
export function getConProcessHistoryAllList(id) {
    return request({
        url: '/con/processConFileHistory/list/' + id,
        method: 'get',
    })
}

export function getConProcessHistoryFile(id) {
    return request({
        url: '/con/processConFileHistory/getPageOfficeFile/' + id,
        method: 'get'
    })
}

//部门合同模块接口
export function getConDeptHistoryAllList(id) {
    return request({
        url: '/con/deptConFileHistory/list/' + id,
        method: 'get',
    })
}

export function getConDeptHistoryFile(id) {
    return request({
        url: '/con/deptConFileHistory/getPageOfficeFile/' + id,
        method: 'get'
    })
}